package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.CheckInfo;
import com.yyp.dao.CheckInfoDao;
import com.yyp.service.CheckInfoService;

@Service
public class CheckInfoServiceImpl implements CheckInfoService {
	@Resource
	CheckInfoDao checkInfoImpl;

	//
	// public void del(String names) {

	// CheckInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CheckInfoService#del(int)
	 */
	public void del(int id) {

		checkInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CheckInfoService#find(java.lang.Integer)
	 */
//	public CheckInfo find(Integer id) {
//		return checkInfoImpl.find(id);
//	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CheckInfoService#find(java.lang.String)
	 */
	public CheckInfo find(String name) {
		return checkInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CheckInfoService#findAll()
	 */
	public List<CheckInfo> findAll() {
		return checkInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CheckInfoService#save(com.yyp.bean.CheckInfo)
	 */
	public void save(CheckInfo entity) {
		checkInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CheckInfoService#updata(com.yyp.bean.CheckInfo)
	 */
	public void updata(CheckInfo entity) {
		checkInfoImpl.updata(entity);
	}

}
